# 血压检测
xy=[]
str1=input("")
while(str1!="end"):
    xyxm=str1.split(",")
    xy.append([xyxm[0],eval(xyxm[1]),eval(xyxm[2])])
    str1=input("")
#代码开始

bzc = []
for daily in  xy:
    if not (60 < daily[1] < 90 and 90 < daily[2] < 140):
        bzc.append(daily)
bfb = len(bzc) / len(xy) * 100
#代码结束
print("不正常次数百分比{:.2f}".format(bfb))
for x in bzc:
    print("日期{}舒张压{}收缩压{}".format(x[0],x[1],x[2]))